package com.example.demo.mapper;

import com.example.demo.entity.OrderBasicInfo;
import com.example.demo.entity.OrderBasicInfoExample;
import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface OrderBasicInfoMapper {
    //订单管理模块begin
    @Update("update order_basic_info" +
            "    set order_status = #{record.order_status}" +
            "    where order_id = #{record.order_id}")
    int updateByPrimaryKey(@Param("record") OrderBasicInfo record);

    @Select("select order_status" +
            "    from order_basic_info" +
            "    where order_id = #{record.order_id}")
    int find_order_status(@Param("record") OrderBasicInfo record);
    //订单管理模块end

}